package com.bwie.product.service.impl;

import com.bwie.common.core.domain.Result;
import com.bwie.product.domain.po.SaleAttr;
import com.bwie.product.mapper.SaleAttrVoMapper;
import com.bwie.product.service.SaleAttrVoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SaleAttrVoServiceImpl implements SaleAttrVoService {
    @Autowired
    private SaleAttrVoMapper saleAttrVoMapper;


    /**
     * 根据skuId查询销售属性
     * @param skuId
     * @return
     */
    @Override
    public Result<List<SaleAttr>> selectSaleAttrVoList(Long skuId) {
        List<SaleAttr> saleAttrVoList = saleAttrVoMapper.selectSaleAttrVoList(skuId);
        return Result.success(saleAttrVoList);
    }
}
